\version "2.16.0"
\include "deutsch.ly"

\include "pianoMvtI.ly"
\include "pianoMvtII.ly"
\include "pianoMvtIII.ly"
\include "defs.ly"

instrument = "Piano"

\paper
{
  obsolete-between-system-padding = #0.1  system-system-spacing #'padding = #(/ obsolete-between-system-padding staff-space)  score-system-spacing #'padding = #(/ obsolete-between-system-padding staff-space)
  %obsolete-between-system-space = #0.1  system-system-spacing #'basic-distance = #(/ obsolete-between-system-space staff-space)  score-system-spacing #'basic-distance = #(/ obsolete-between-system-space staff-space)
  ragged-last-bottom = ##f
}

\book
{
  \include "header.ly"
  \score
  {
    \new PianoStaff
    <<
      \new Staff="RH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        \pianoRightMvtI
      }

      \new Dynamics = "dynamics" \pianoDynamicsMvtI

      \new Staff="LH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        << \pianoLeftMvtI >>
%\pianoPedalsMvtI >>
      }

      %\new Dynamics = "pedals" \pianoPedalsMvtI

      %\outlineMvtI
    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  \score
  {
    \new PianoStaff
    <<
      \new Staff="RH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        \pianoRightMvtII
      }

      \new Dynamics = "dynamics" \pianoDynamicsMvtII

      \new Staff="LH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        << \pianoLeftMvtII \pianoPedalsMvtII >>
      }

      %\new Dynamics = "pedals" \pianoPedalsMvtII

      \outlineMvtII
    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  \score
  {
    \new PianoStaff
    <<
      \new Staff="RH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        << \outlineMvtIII \pianoRightMvtIII >>
      }

      \new Dynamics = "dynamics" \pianoDynamicsMvtIII

      \new Staff="LH"
      {
        \accidentalStyle "modern"
        \set Staff.extraNatural = ##f
        << \outlineMvtIII \pianoLeftMvtIII \pianoPedalsMvtIII >>
      }

      %\new Dynamics = "pedals" \pianoPedalsMvtIII

    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  %midi
  \score
  {
    <<
      \new PianoStaff
      <<
        \new Staff="RH"
        {
          << \pianoRightMvtI \pianoDynamicsMvtI \pianoPedalsMvtI >>
          << \pianoRightMvtII \pianoDynamicsMvtII \pianoPedalsMvtII >>
          << \pianoRightMvtIII \pianoDynamicsMvtIII \pianoPedalsMvtIII >>
        }
        \new Staff="LH"
        {
          << \pianoLeftMvtI \pianoDynamicsMvtI \pianoPedalsMvtI >>
          << \pianoLeftMvtII \pianoDynamicsMvtII \pianoPedalsMvtII >>
          << \pianoLeftMvtIII \pianoDynamicsMvtIII \pianoPedalsMvtIII >>
        }
      >>
      {
        << \midiOutlineMvtI \outlineMvtI >>
        << \midiOutlineMvtII \outlineMvtII >>
        << \midiOutlineMvtIII \outlineMvtIII >>
      }
    >>
    \midi { }
  }
}
